home *** CD-ROM | disk | FTP | other *** search
/ Programming Sound Cards / Programming Sound Cards.iso / sound_06 / csndms.asm < prev    next >
Assembly Source File  |  1995-01-01  |  2KB  |  97 lines

  1. ;    CSOUND.ASM
  2. ;
  3. ; interface langage C du sound-driver resident.
  4. ;
  5. ; 87/03/18, Marc Savary, Ad Lib.
  6. ; 88/03/1,  Benoit Robitaille, Ad Lib.
  7. ;
  8. ;
  9.     INCLUDE    VERSION.INC
  10.     INCLUDE    CMICRO.MAC        ; for Microsoft C 5.0
  11.  
  12.     INCLUDE DEFS.MAC        ; equates & sound-driver version proc.
  13.  
  14.  
  15.  
  16.     PSEG CSOUND
  17.  
  18.     INCLUDE VERSION.MAC        ; signature du sound-driver ...
  19.  
  20. ;
  21. ;    unsigned GetSoundDrvVersion()
  22. ;        retourne le numero de version du sound-driver
  23. ;        charge en memoire, ou 0 si non-charge.
  24. ;         utilise la MACRO ..
  25. ;
  26.     DrvVersionProc _GetSoundDrvVersion
  27.  
  28.  
  29.  
  30.  
  31. ;    int SoundCall( functionNumber, arg_list)
  32. ;        int functionNumer;
  33. ;        any... arg_list
  34. ;
  35. ;    genere l'interruption au sound driver
  36. ;    avec l'address des arguments dans ES:BX,
  37. ;    et le numero de function dans SI
  38.  
  39. aaframe    STRUC
  40.         dw    ?        ; old BP
  41.         db    CPSIZE DUP (?)    ; return addr
  42. aaargs        dw    ?        ; function number
  43. others        dw    ?        ; from this point... all other param.
  44. aaframe    ENDS    
  45.  
  46. BEGIN _SoundCall
  47.  
  48.     penter    0            ; Normal C calling format ( 0= Local variables)
  49.     push    es
  50.  
  51.     mov    si, [bp].aaargs        ; get function number
  52.     lea    bx, [bp].others        ; get pointers to others args...
  53.     push    ss
  54.     pop    es
  55.     int    sound_driver_int    ; call sound-driver ...
  56.  
  57.     pop    es
  58.     pleave    0            ; Restore Stack pointers ( sp, bp)
  59. _SoundCall    ENDP
  60.  
  61.  
  62.  
  63.  
  64. ; ===================================================================
  65. ;
  66. ;    definition des fonction qui remplacent les anciens appels
  67. ;    au sound-driver en C.
  68. ;
  69.  
  70. fInitSon    equ    0
  71. fFinSon        equ    1
  72. fEcrTempsDebut    equ    2
  73. fActiveSon    equ    3
  74. fLisSonActif    equ    4
  75. fChut        equ    5
  76. fEcrMode    equ    6
  77. fLisMode    equ    7
  78. fEcrVolume    equ    8
  79. fEcrTempo    equ    9
  80. fEcrDiapason    equ    10
  81. fLisDiapason    equ    11
  82. fEcrFileAct    equ    12
  83. fLisFileAct    equ    13
  84. fJouePoly    equ    14
  85. fJoueNote    equ    15
  86. fEcrTimbre    equ    16
  87. fEcrPitch    equ    17
  88. fEcrTickTemps    equ    18
  89. fSoundOn    equ    19
  90. fSoundOff    equ    20
  91. fSetVParam    equ    21
  92.  
  93.  
  94.     ENDPS CSOUND
  95.     end
  96.  
  97.